package kfs.light.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import javax.swing.WindowConstants;

public class MainFrame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5463537038932904457L;
	private final static String MAIN_PANEL = "Main";
	private final static String ARDUINO_PANEL = "Arduino";
	//private final static String ZONE_PANEL = "Zones";
	


	public MainFrame() {
		//Frame setup
		super("KFS Light");		
		setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);		
		setPreferredSize(new Dimension(500, 200));
		
		//Panel setup
		ArduinoStatus arduinoStatus = new ArduinoStatus();
		MainPanel mainPanel = new MainPanel();
		//TabSetup
		JTabbedPane tabbedPanel = new JTabbedPane();
		tabbedPanel.add(MAIN_PANEL, mainPanel);
		tabbedPanel.add(ARDUINO_PANEL, arduinoStatus);
		
		add(tabbedPanel, BorderLayout.CENTER);
		
	}
}
